package com.hqyj.ssm_project.mapper;

import com.hqyj.ssm_project.pojo.User;
import com.hqyj.ssm_project.utils.PageUtil;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User row);

    int insertSelective(User row);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User row);

    int updateByPrimaryKey(User row);

    List<User> selectUser();

    List<User> findUserNoidcard();

    void updateIdcardByUser(Integer userId);

    List<User> selectUserAndIdcardAndDetp();

    void updateUserByDeptId(Integer id);

    User selectUserAndDetp(Integer userId);

    User login(User user);

    PageUtil<User> selectTotalRecordNumber();

    List<User> selectUserByPageNum(HashMap<String, Object> map);

    List<User> selectUserByPageN(@Param("startindex")Integer startindex, @Param("pageunit")Integer pageunit);


    List<User> selectSuperUser(Integer roleId);

    User findCardUser(String cardNum);
}